<template>
  <div class="about">
    <h1>关于我们{{testelem}}</h1>
    <p>这是一个演示Vue Router功能的示例项目</p>
    
    <div class="content">
      <section>
        <h2>项目特性</h2>
        <ul>
          <li>Vue 3 Composition API</li>
          <li>Vue Router 4 路由管理</li>
          <li>Vite 快速构建</li>
          <li>响应式设计</li>
        </ul>
      </section>
      
      <section>
        <h2>技术栈</h2>
        <div class="tech-stack">
          <span class="tech-tag">Vue 3</span>
          <span class="tech-tag">Vue Router</span>
          <span class="tech-tag">Vite</span>
          <span class="tech-tag">CSS3</span>
        </div>
      </section>
    </div>
    
    <div class="navigation">
      <router-link to="/" class="btn btn-secondary" @click="addTest">返回首页</router-link>
    </div>
  </div>
</template>

<script setup>
import { testelem, addTest } from '../hooks/useTest'
// 组件逻辑
</script>

<style scoped>
.about {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 1rem;
}

p {
  color: #666;
  text-align: center;
  margin-bottom: 2rem;
}

.content {
  margin: 2rem 0;
}

section {
  margin-bottom: 2rem;
}

h2 {
  color: #495057;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  color: #6c757d;
  padding: 0.5rem 0;
  border-left: 3px solid #007bff;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: #e9ecef;
  color: #495057;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.navigation {
  text-align: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  margin: 0 0.5rem;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #545b62;
}
</style>
